package com.itheima.interface3;

public class test {
    public static void main(String[] args) {
        Student students[]=new Student[10];
        students[0]=new Student("张三",18,90,"男");
        students[1]=new Student("李四",19,80,"女");
        students[2]=new Student("王五",20,70,"男");
        students[3]=new Student("赵六",21,60,"女");
        students[4]=new Student("孙七",22,50,"男");
        students[5]=new Student("周八",23,40,"女");
        students[6]=new Student("吴九",24,30,"男");
        students[7]=new Student("郑十",25,20,"女");
        students[8]=new Student("王十一",26,10,"男");
        students[9]=new Student("张十二",27,80,"女");
        Function1 f1=new Function1(students);
        f1.printAllscore();
        f1.printAvgScore();
        Function2 f2=new Function2(students);
        f2.printAllscore();
        f2.printAvgScore();
    }
}
